package ld.oauth.blog.model.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class ArticleDetail {

    @ApiModelProperty("主键id")
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("描述")
    private String summary;

    @ApiModelProperty("浏览数")
    private Integer viewCount;

    @ApiModelProperty("点赞数")
    private Integer thumhup;

    @ApiModelProperty("公开1  不公开0")
    private Integer ispublic;

    @ApiModelProperty("图片地址")
    private String imageUrl;

    @ApiModelProperty("md格式的文章内容")
    private String mdContent;

    @ApiModelProperty("html格式的文章内容")
    private String htmlContent;

    @ApiModelProperty("创建人主键id")
    @TableField(fill = FieldFill.INSERT)
    private Integer creator;

    @ApiModelProperty("修改人主键id")
    private Integer updator;

    @ApiModelProperty("创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateDate;

    //标签id集合
    private List<List<Integer>> labelIds;

    private String nickName;

    private String userImage;

}
